package com.timsmeet.timeperiod;

import java.util.Calendar;

public interface TimePeriod {
	
	public final static long MILISECONDS_IN_MINUTE = 60 * 1000;

	Calendar getStart();
	void setStart(Calendar start);
	Calendar getEnd();
	void setEnd(Calendar end);
	boolean isMoment();
	TimeInterval getDuration();
	PeriodRelation getRelation(TimePeriod period);
	boolean hasInside(TimePeriod period);
	boolean intersectsWith(TimePeriod period);
	boolean overlapsWith(TimePeriod period);
	boolean isSamePeriod(TimePeriod period);
}
